class Order:
    def __init__(self, items, total_amount):
        self.items = items
        self.total_amount = total_amount

    def display(self):
        print("订单详情：")
        for product, quantity in self.items.items():
            print(f"{product.name} x{quantity} - 单价：{product.price}")
        print(f"总金额：{self.total_amount:.2f}")
